package com.das.mechanic_base.bean.main;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 车辆行驶证
 */
public class CarDriLicBean implements Parcelable {
//     "carNum": "辽ABCDEF",
//             "carVin": "ABCDEEBB5YA018122",
//             "registrationDate": "2011-09-19"

    public String carNum;
    public String carVin;
    public String registrationDate;

    /**
     * 车主名
     */
    public String firstName;

    /**
     * 车主姓氏
     */
    public String lastName;



    @Override
    public String toString() {
        return "CarDriLicBean{" +
                "carNum='" + carNum + '\'' +
                ", carVin='" + carVin + '\'' +
                ", registrationDate='" + registrationDate + '\'' +
                ", firstName='" + firstName + '\'' +
                ", lastName='" + lastName + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.carNum);
        dest.writeString(this.carVin);
        dest.writeString(this.registrationDate);
        dest.writeString(this.firstName);
        dest.writeString(this.lastName);
    }

    public void readFromParcel(Parcel source) {
        this.carNum = source.readString();
        this.carVin = source.readString();
        this.registrationDate = source.readString();
        this.firstName = source.readString();
        this.lastName = source.readString();
    }

    public CarDriLicBean() {
    }

    protected CarDriLicBean(Parcel in) {
        this.carNum = in.readString();
        this.carVin = in.readString();
        this.registrationDate = in.readString();
        this.firstName = in.readString();
        this.lastName = in.readString();
    }

    public static final Creator<CarDriLicBean> CREATOR = new Creator<CarDriLicBean>() {
        @Override
        public CarDriLicBean createFromParcel(Parcel source) {
            return new CarDriLicBean(source);
        }

        @Override
        public CarDriLicBean[] newArray(int size) {
            return new CarDriLicBean[size];
        }
    };
}
